﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Dal.Migrations
{
    public partial class sdb : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "dengmodels",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Name = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Shouji = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Zhang = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Mima = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    jiaose = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    chuangjian = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_dengmodels", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "jgmodels",
                columns: table => new
                {
                    id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Jgname = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    tu = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    xialaid = table.Column<int>(type: "int", nullable: false),
                    yingye = table.Column<DateTime>(type: "datetime2", nullable: false),
                    dizhi = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    phone = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    steat = table.Column<int>(type: "int", nullable: false),
                    xiangq = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    isdeleted = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_jgmodels", x => x.id);
                });

            migrationBuilder.CreateTable(
                name: "xiamodels",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Xname = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_xiamodels", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "dengmodels");

            migrationBuilder.DropTable(
                name: "jgmodels");

            migrationBuilder.DropTable(
                name: "xiamodels");
        }
    }
}
